import service from '@/utils/request';

// 获取验证码
export const getCaptchaCode = () => {
  return service({
    url: '/captcha',
    method: 'get'
  })
};

// 验证验证码
export const userRegister = (data) => {
  return service({
    url: '/register',
    method: 'post',
    data
  })
};

// 验证验证码
export const userLogin = (data) => {
  return service({
    url: '/login',
    method: 'post',
    data
  })
};